Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- public OnFilterScriptInit()
- {
- CreateObject(18853, 1842.85193, -2195.60718, 43.86293, 0.00000, -45.00000, 0.00000);
- CreateObject(18853, 1805.99463, -2195.59375, 132.79930, 0.00000, 0.00000, 0.00000);
- CreateObject(18853, 1843.01489, -2195.49902, 222.15445, 0.00000, 45.00000, 0.00000);
- CreateObject(18853, 1932.80957, -2195.48096, 259.34003, 0.00000, 90.00000, 0.00000);
- CreateObject(18853, 2022.57654, -2195.47729, 222.13429, 0.00000, 135.00000, 0.00000);
- CreateObject(18853, 2059.86206, -2195.53638, 132.20639, 0.00000, 180.00000, 0.00000);
- CreateObject(18853, 2022.80627, -2195.55640, 42.88428, 0.00000, 225.00000, 0.00000);
- return 1;
- }
- public OnPlayerCommandText(playerid,cmdtext[]) {
- new cmd[30],id[20],idx;
- cmd = strtok(cmdtext,idx),id = strtok(cmdtext,idx);
- if(!strcmp("/v",cmd,false)) {
- new Float:Origin[3];
- GetPlayerPos(playerid,Origin[0],Origin[1],Origin[2]);
- CreateVehicle(strval(id),Origin[0],Origin[1],Origin[2],0,0,0,60);
- }
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement